package main;

import gui.ClientGUI;
import gui.ServerGUI;

public class Main {
    
    private static ServerGUI sg = null;
    
    public static void main(String[] args) {
        startServer();
        startClient(1);
    }
    
    private static void startServer() {
        sg = new ServerGUI();
        new Thread(sg).start();
    }

    private static void startClient(int c) {
        ClientGUI cg = new ClientGUI();
        for(int i = 1; i <= c; i++) {
            cg.setLocation(sg.getWidth(), sg.getLocation().y);
            new Thread(cg).start();
        }
    }
}
